#ifndef AnimationHacker_H
#define AnimationHacker_H

#include <QObject>

//获取目标节点下的时间轴动画

class AnimationHacker:public QObject{
    Q_OBJECT
    Q_PROPERTY(QObject *target READ target WRITE setTarget NOTIFY targetChanged FINAL)
    Q_PROPERTY(QObject *result READ result NOTIFY resultChanged FINAL)
public:
    AnimationHacker(QObject* parent = nullptr);


    QObject *target() const;
    void setTarget(QObject *newTarget);
    QObject *result() const;
signals:
    void targetChanged();
    void resultChanged();
private:
    void update();
    void setResult(QObject *newResult);

private:
    QObject* m_target = nullptr;
    QObject* m_result = nullptr;
};

#endif
